#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

def get_speed(v):
    return (v-11000)*0.008

if __name__ == "__main__":
    ret = get_speed(int(sys.argv[1], 16))
    print("%1.1f"%ret, "km/h", "%1.1f"%(ret/3.6), "m/s")
